home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Essentials / MacApp Documentation / MacApp.TECH$ Archives / 1987 / Oct 87 / Question on Update Events 10⁄5 < prev    next >
Encoding:
Text File  |  1991-03-06  |  1.3 KB  |  33 lines  |  [TEXT/GEOL]

  1. Item    6493745                         5-Oct-87        12:58
  2.  
  3. From:   D0542                           Productive Tech, Dev, Mark Gilford
  4.  
  5. To:     MACAPP$                         MacApp Interest List
  6.  
  7. Sub:    Question on Update Events
  8.  
  9. Hello everyone...
  10.  
  11. I am working on an application which has spatially ordered objects in a view,
  12. (like a spreadsheet), and have been working on the selection process. Currently
  13. the way it works is that when the the mouse button first is down, the
  14. DoMouseCommand method of the view creates a Selector object of type TCommand.
  15. It is the job of the selector's TrackMouse method to initiate highlighting or
  16. unhighlighting of objects as the user changes the selection rectangle with the
  17. mouse.  The actual object highlighting (invert Rect) is the only feedback to
  18. the user, again the same as with a spreadsheet,and the TrackFeedBack method has
  19. been overridden to do nothing.
  20.  
  21. This technique works ok,with one exception: I always get an update event when
  22. the mouse goes up, which invalidates and redraws the view in the frame.  This
  23. redraw is unnecessary, because the objects are already being displayed exactly
  24. the way they should be, simply through the selection process itself.
  25.  
  26. Any ideas on getting around this?
  27.  
  28. Thanks much.....Mark
  29.  
  30.  
  31.  
  32.  
  33.